package com.isoft.filelistener.dao;

import com.isoft.filelistener.entity.GtlsDflt;
import com.isoft.filelistener.entity.Meta;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface GtlsMsgDao {
    @Insert("insert into TEAM_03.DFME_GTLS(SNDR,RCVR,SEQN,DDTM,TYPE,STYP,FLID,FFID,FIDE,FATT,GTNO,ID,CODE,GTAT," +
            "ESTR,EEND,RSTR,REND,BTSC) VALUES (#{meta.sndr},#{meta.rcvr},#{meta.seqn}," +
            "#{meta.ddtm},#{meta.type},#{meta.styp},#{dflt.flid},#{dflt.ffid}," +
            "#{dflt.fide},#{dflt.fatt},#{dflt.gtno},#{dflt.id},#{dflt.code},#{dflt.gtat},#{dflt.estr}," +
            "#{dflt.eend},#{dflt.rstr},#{dflt.rend},#{dflt.btsc})")
    public int insertgtls (@Param("meta") Meta meta, @Param("dflt") GtlsDflt dflt);
}
